package ru.lukyanets.transmission.protocol.model.torrent;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author slukyanets
 */
@SuppressWarnings("unused")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonPropertyOrder({
        "announce",
        "id",
        "scrape",
        "tier"
})
@Getter
@Setter
@EqualsAndHashCode(of = "id")
@ToString(of = {"id", "announce"})
public class Tracker {
    @JsonProperty("announce")
    private String announce;
    @JsonProperty("id")
    private int id;
    @JsonProperty("scrape")
    private String scrape;
    @JsonProperty("tier")
    private int tier;
    @JsonProperty("sitename")
    private String sitename;
}
